package com.ciis.system.relation.service;

import com.ciis.system.relation.domain.TSysRoleAuthority;

import java.util.HashMap;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: zhangdajun
 * Date: 14-5-31
 * Time: 下午3:09
 * To change this template use File | Settings | File Templates.
 */
public interface ISysRoleAuthorityService {

    /**
     * 根据角色ID获取权限信息
     * @param roleId
     * @return
     * @throws Exception
     */
    public List<TSysRoleAuthority> getAuthorityByRId(String roleId) throws Exception;

    /**
     * 根据用户ID获取权限信息
     * @param userId
     * @return
     * @throws Exception
     */
    public List<TSysRoleAuthority> getAuthorityByUId(String userId) throws Exception;

    /**
     * 根据角色ID获取用户权限
     * @param roleId
     * @return
     * @throws Exception
     */
    public HashMap<String,TSysRoleAuthority> getAuthorityMapByRId(String roleId) throws Exception;

    /**
     * 根据用户ID获取权限信息
     * @param userId
     * @return
     * @throws Exception
     */
    public HashMap<String,TSysRoleAuthority> getAuthorityMapByUId(String userId) throws Exception;

}
